package org.fastsyncer.common.entity;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: RedisConfig 
 * @Description: Redis连接配置
 * @author AE86
 * @date: 2018年5月23日 下午5:23:59
 */
public class RedisConfig implements Serializable {

	private static final long serialVersionUID = 1768242426510437724L;
	
	// 连接地址127.0.0.1:6379,127.0.0.1:6380
	private String url;

	// key
	private String key;

	// 密码
	private String password;
	
	// 表包含的字段
	private List<Map<String, Object>> column;

	public RedisConfig() {
		super();
	}

    public RedisConfig(String url, String key, String password) {
        super();
        this.url = url;
        this.key = key;
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public RedisConfig setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getKey() {
        return key;
    }

    public RedisConfig setKey(String key) {
        this.key = key;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public RedisConfig setPassword(String password) {
        this.password = password;
        return this;
    }

    public List<Map<String, Object>> getColumn() {
        return column;
    }

    public RedisConfig setColumn(List<Map<String, Object>> column) {
        this.column = column;
        return this;
    }

}
